<?php
/**
 *	Data Model of Cases.
 *	@package		mv2.model
 *	@extends		Framework_Krypton_Core_Model
 *	@author			Christian Würker <Christian.Wuerker@CeuS-Media.de>
 *	@since			13.03.2007
 *	@version		0.1
 */
/**
 *	Data Model of Cases.
 *	@package		mv2.model
 *	@extends		Framework_Krypton_Core_Model
 *	@author			Christian Würker <Christian.Wuerker@CeuS-Media.de>
 *	@since			13.03.2007
 *	@version		0.1
 */
class Model_Case extends Framework_Krypton_Core_Model
{
	/**
	 *	Constructor.
	 *	@access		public
	 *	@param		int		case_id		ID of Case
	 *	@return		void
	 */
	function __construct( $case_id = false )
	{
		$tablename	= 'cases';
		$fields	= array (
			'case_id',
			'topic_id',
			'author_id',
			'priority',
			'maturity',
			'title',
			'description',
			'precondition',
			'created',
			'modified',
			);
		$primary_key	= 'case_id';
		$indices = array(
			'topic_id',
			'author_id',
			'priority',
			'maturity',
			);
		parent::__construct( $tablename, $fields, $primary_key, $$primary_key );
		$this->setIndices( $indices );
	}
}
?>
